<?php
/**
 * 服务端的异常
 */
class ServerException extends RennException
{
    protected $errorCode;

    /**
     *
     * @param unknown $code
     *        	code和message使用父类的属性
     * @param unknown $message
     *        	code和message使用父类的属性
     * @param string $previous
     */
    public function __construct($code, $message, $previous = null)
    {
        parent::__construct ( $message, null, $previous );
        $this->errorCode = $code;
    }
    public function getErrorCode()
    {
        return $this->errorCode;
    }
}
